3.4.53 \(\int \frac {x \log (x)}{a+b x+c x^2} \, dx\) [353]

Optimal. Leaf size=193 \[ \frac {\left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \log (x) \log \left (1+\frac {2 c x}{b-\sqrt {b^2-4 a c}}\right )}{2 c}+\frac {\left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \log (x) \log \left (1+\frac {2 c x}{b+\sqrt {b^2-4 a c}}\right )}{2 c}+\frac {\left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \text {Li}_2\left (-\frac {2 c x}{b-\sqrt {b^2-4 a c}}\right )}{2 c}+\frac {\left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \text {Li}_2\left (-\frac {2 c x}{b+\sqrt {b^2-4 a c}}\right )}{2 c} \]

[Out]

1/2*ln(x)*ln(1+2*c*x/(b-(-4*a*c+b^2)^(1/2)))*(1-b/(-4*a*c+b^2)^(1/2))/c+1/2*polylog(2,-2*c*x/(b-(-4*a*c+b^2)^(
1/2)))*(1-b/(-4*a*c+b^2)^(1/2))/c+1/2*ln(x)*ln(1+2*c*x/(b+(-4*a*c+b^2)^(1/2)))*(1+b/(-4*a*c+b^2)^(1/2))/c+1/2*
polylog(2,-2*c*x/(b+(-4*a*c+b^2)^(1/2)))*(1+b/(-4*a*c+b^2)^(1/2))/c

________________________________________________________________________________________

Rubi [A]
time = 0.13, antiderivative size = 193, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {2404, 2354, 2438} \begin {gather*} \frac {\left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \text {PolyLog}\left (2,-\frac {2 c x}{b-\sqrt {b^2-4 a c}}\right )}{2 c}+\frac {\left (\frac {b}{\sqrt {b^2-4 a c}}+1\right ) \text {PolyLog}\left (2,-\frac {2 c x}{\sqrt {b^2-4 a c}+b}\right )}{2 c}+\frac {\log (x) \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \log \left (\frac {2 c x}{b-\sqrt {b^2-4 a c}}+1\right )}{2 c}+\frac {\log (x) \left (\frac {b}{\sqrt {b^2-4 a c}}+1\right ) \log \left (\frac {2 c x}{\sqrt {b^2-4 a c}+b}+1\right )}{2 c} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(x*Log[x])/(a + b*x + c*x^2),x]

[Out]

((1 - b/Sqrt[b^2 - 4*a*c])*Log[x]*Log[1 + (2*c*x)/(b - Sqrt[b^2 - 4*a*c])])/(2*c) + ((1 + b/Sqrt[b^2 - 4*a*c])
*Log[x]*Log[1 + (2*c*x)/(b + Sqrt[b^2 - 4*a*c])])/(2*c) + ((1 - b/Sqrt[b^2 - 4*a*c])*PolyLog[2, (-2*c*x)/(b -
Sqrt[b^2 - 4*a*c])])/(2*c) + ((1 + b/Sqrt[b^2 - 4*a*c])*PolyLog[2, (-2*c*x)/(b + Sqrt[b^2 - 4*a*c])])/(2*c)

Rule 2354

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[Log[1 + e*(x/d)]*((a +
b*Log[c*x^n])^p/e), x] - Dist[b*n*(p/e), Int[Log[1 + e*(x/d)]*((a + b*Log[c*x^n])^(p - 1)/x), x], x] /; FreeQ[
{a, b, c, d, e, n}, x] && IGtQ[p, 0]

Rule 2404

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*(RFx_), x_Symbol] :> With[{u = ExpandIntegrand[(a + b*Log[c*x^
n])^p, RFx, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, n}, x] && RationalFunctionQ[RFx, x] && IGtQ[p, 0]

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rubi steps

\begin {align*} \int \frac {x \log (x)}{a+b x+c x^2} \, dx &=\int \left (\frac {\left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \log (x)}{b-\sqrt {b^2-4 a c}+2 c x}+\frac {\left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \log (x)}{b+\sqrt {b^2-4 a c}+2 c x}\right ) \, dx\\ &=\left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \int \frac {\log (x)}{b-\sqrt {b^2-4 a c}+2 c x} \, dx+\left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \int \frac {\log (x)}{b+\sqrt {b^2-4 a c}+2 c x} \, dx\\ &=\frac {\left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \log (x) \log \left (1+\frac {2 c x}{b-\sqrt {b^2-4 a c}}\right )}{2 c}+\frac {\left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \log (x) \log \left (1+\frac {2 c x}{b+\sqrt {b^2-4 a c}}\right )}{2 c}-\frac {\left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \int \frac {\log \left (1+\frac {2 c x}{b-\sqrt {b^2-4 a c}}\right )}{x} \, dx}{2 c}-\frac {\left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \int \frac {\log \left (1+\frac {2 c x}{b+\sqrt {b^2-4 a c}}\right )}{x} \, dx}{2 c}\\ &=\frac {\left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \log (x) \log \left (1+\frac {2 c x}{b-\sqrt {b^2-4 a c}}\right )}{2 c}+\frac {\left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \log (x) \log \left (1+\frac {2 c x}{b+\sqrt {b^2-4 a c}}\right )}{2 c}+\frac {\left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \text {Li}_2\left (-\frac {2 c x}{b-\sqrt {b^2-4 a c}}\right )}{2 c}+\frac {\left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \text {Li}_2\left (-\frac {2 c x}{b+\sqrt {b^2-4 a c}}\right )}{2 c}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.10, size = 182, normalized size = 0.94 \begin {gather*} \frac {\log (x) \left (\left (-b+\sqrt {b^2-4 a c}\right ) \log \left (1+\frac {2 c x}{b-\sqrt {b^2-4 a c}}\right )+\left (b+\sqrt {b^2-4 a c}\right ) \log \left (1+\frac {2 c x}{b+\sqrt {b^2-4 a c}}\right )\right )+\left (-b+\sqrt {b^2-4 a c}\right ) \text {Li}_2\left (\frac {2 c x}{-b+\sqrt {b^2-4 a c}}\right )+\left (b+\sqrt {b^2-4 a c}\right ) \text {Li}_2\left (-\frac {2 c x}{b+\sqrt {b^2-4 a c}}\right )}{2 c \sqrt {b^2-4 a c}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(x*Log[x])/(a + b*x + c*x^2),x]

[Out]

(Log[x]*((-b + Sqrt[b^2 - 4*a*c])*Log[1 + (2*c*x)/(b - Sqrt[b^2 - 4*a*c])] + (b + Sqrt[b^2 - 4*a*c])*Log[1 + (
2*c*x)/(b + Sqrt[b^2 - 4*a*c])]) + (-b + Sqrt[b^2 - 4*a*c])*PolyLog[2, (2*c*x)/(-b + Sqrt[b^2 - 4*a*c])] + (b
+ Sqrt[b^2 - 4*a*c])*PolyLog[2, (-2*c*x)/(b + Sqrt[b^2 - 4*a*c])])/(2*c*Sqrt[b^2 - 4*a*c])

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(361\) vs. \(2(169)=338\).
time = 0.81, size = 362, normalized size = 1.88

method result size
risch \(\frac {\ln \left (x \right ) \left (\ln \left (\frac {-2 c x +\sqrt {-4 c a +b^{2}}-b}{-b +\sqrt {-4 c a +b^{2}}}\right ) \sqrt {-4 c a +b^{2}}-\ln \left (\frac {-2 c x +\sqrt {-4 c a +b^{2}}-b}{-b +\sqrt {-4 c a +b^{2}}}\right ) b +\ln \left (\frac {b +2 c x +\sqrt {-4 c a +b^{2}}}{b +\sqrt {-4 c a +b^{2}}}\right ) \sqrt {-4 c a +b^{2}}+\ln \left (\frac {b +2 c x +\sqrt {-4 c a +b^{2}}}{b +\sqrt {-4 c a +b^{2}}}\right ) b \right )}{2 c \sqrt {-4 c a +b^{2}}}+\frac {\dilog \left (\frac {-2 c x +\sqrt {-4 c a +b^{2}}-b}{-b +\sqrt {-4 c a +b^{2}}}\right )}{2 c}-\frac {\dilog \left (\frac {-2 c x +\sqrt {-4 c a +b^{2}}-b}{-b +\sqrt {-4 c a +b^{2}}}\right ) b}{2 c \sqrt {-4 c a +b^{2}}}+\frac {\dilog \left (\frac {b +2 c x +\sqrt {-4 c a +b^{2}}}{b +\sqrt {-4 c a +b^{2}}}\right )}{2 c}+\frac {\dilog \left (\frac {b +2 c x +\sqrt {-4 c a +b^{2}}}{b +\sqrt {-4 c a +b^{2}}}\right ) b}{2 c \sqrt {-4 c a +b^{2}}}\) \(361\)
default \(\frac {\ln \left (x \right ) \left (\ln \left (\frac {-2 c x +\sqrt {-4 c a +b^{2}}-b}{-b +\sqrt {-4 c a +b^{2}}}\right ) \sqrt {-4 c a +b^{2}}-\ln \left (\frac {-2 c x +\sqrt {-4 c a +b^{2}}-b}{-b +\sqrt {-4 c a +b^{2}}}\right ) b +\ln \left (\frac {b +2 c x +\sqrt {-4 c a +b^{2}}}{b +\sqrt {-4 c a +b^{2}}}\right ) \sqrt {-4 c a +b^{2}}+\ln \left (\frac {b +2 c x +\sqrt {-4 c a +b^{2}}}{b +\sqrt {-4 c a +b^{2}}}\right ) b \right )}{2 c \sqrt {-4 c a +b^{2}}}+\frac {\dilog \left (\frac {-2 c x +\sqrt {-4 c a +b^{2}}-b}{-b +\sqrt {-4 c a +b^{2}}}\right ) \sqrt {-4 c a +b^{2}}-\dilog \left (\frac {-2 c x +\sqrt {-4 c a +b^{2}}-b}{-b +\sqrt {-4 c a +b^{2}}}\right ) b +\dilog \left (\frac {b +2 c x +\sqrt {-4 c a +b^{2}}}{b +\sqrt {-4 c a +b^{2}}}\right ) \sqrt {-4 c a +b^{2}}+\dilog \left (\frac {b +2 c x +\sqrt {-4 c a +b^{2}}}{b +\sqrt {-4 c a +b^{2}}}\right ) b}{2 c \sqrt {-4 c a +b^{2}}}\) \(362\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*ln(x)/(c*x^2+b*x+a),x,method=_RETURNVERBOSE)

[Out]

1/2*ln(x)*(ln((-2*c*x+(-4*a*c+b^2)^(1/2)-b)/(-b+(-4*a*c+b^2)^(1/2)))*(-4*a*c+b^2)^(1/2)-ln((-2*c*x+(-4*a*c+b^2
)^(1/2)-b)/(-b+(-4*a*c+b^2)^(1/2)))*b+ln((b+2*c*x+(-4*a*c+b^2)^(1/2))/(b+(-4*a*c+b^2)^(1/2)))*(-4*a*c+b^2)^(1/
2)+ln((b+2*c*x+(-4*a*c+b^2)^(1/2))/(b+(-4*a*c+b^2)^(1/2)))*b)/c/(-4*a*c+b^2)^(1/2)+1/2*(dilog((-2*c*x+(-4*a*c+
b^2)^(1/2)-b)/(-b+(-4*a*c+b^2)^(1/2)))*(-4*a*c+b^2)^(1/2)-dilog((-2*c*x+(-4*a*c+b^2)^(1/2)-b)/(-b+(-4*a*c+b^2)
^(1/2)))*b+dilog((b+2*c*x+(-4*a*c+b^2)^(1/2))/(b+(-4*a*c+b^2)^(1/2)))*(-4*a*c+b^2)^(1/2)+dilog((b+2*c*x+(-4*a*
c+b^2)^(1/2))/(b+(-4*a*c+b^2)^(1/2)))*b)/c/(-4*a*c+b^2)^(1/2)

________________________________________________________________________________________

Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*log(x)/(c*x^2+b*x+a),x, algorithm="maxima")

[Out]

Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'a
ssume' command before evaluation *may* help (example of legal syntax is 'assume(4*a*c-b^2>0)', see `assume?` f
or more deta

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*log(x)/(c*x^2+b*x+a),x, algorithm="fricas")

[Out]

integral(x*log(x)/(c*x^2 + b*x + a), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x \log {\left (x \right )}}{a + b x + c x^{2}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*ln(x)/(c*x**2+b*x+a),x)

[Out]

Integral(x*log(x)/(a + b*x + c*x**2), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*log(x)/(c*x^2+b*x+a),x, algorithm="giac")

[Out]

integrate(x*log(x)/(c*x^2 + b*x + a), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x\,\ln \left (x\right )}{c\,x^2+b\,x+a} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x*log(x))/(a + b*x + c*x^2),x)

[Out]

int((x*log(x))/(a + b*x + c*x^2), x)

________________________________________________________________________________________